! function() {
    var form = layui.form,
        $ = layui.$,
        layer = layui.layer;
    $('#btn').click(function() {
        layer.open({
            type: 2,
            title: false,
            closeBtn: 0,
            area: ['1000px', '700px'],
            shadeClose: true,
            skin: 'yourclass',
            content: './src/views/transaction/project/add_form.html',
            success: function(layero) {        
                var mask = $(".layui-layer-shade");
                mask.appenTo(layero.parent());        //其中：layero是弹层的DOM对象
                  
            }

        });
    });
}();